package com.panda.mall.common.mallCoupon.entity;

import javax.validation.constraints.NotNull;

import java.io.Serializable;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableName;
import com.panda.mall.common.base.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
* 秒杀活动商品关联表
* mall_coupon_seckill_sku_relation
*/
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("mall_coupon_seckill_sku_relation")
public class MallCouponSeckillSkuRelation extends BaseEntity implements Serializable {

    /**
    * 主键id
    */
    @NotNull(message="[主键id]不能为空")
    @ApiModelProperty("主键id")
    private Long id;
    /**
    * 秒杀活动id
    */
    @ApiModelProperty("秒杀活动id")
    private Long seckillId;
    /**
    * 活动场次id
    */
    @ApiModelProperty("活动场次id")
    private Long sessionId;
    /**
    * 商品库存id
    */
    @ApiModelProperty("商品库存id")
    private Long skuId;
    /**
    * 秒杀价格
    */
    @ApiModelProperty("秒杀价格")
    private BigDecimal seckillPrice;
    /**
    * 秒杀数量
    */
    @ApiModelProperty("秒杀数量")
    private Integer seckillCount;
    /**
    * 秒杀限购数
    */
    @ApiModelProperty("秒杀限购数")
    private Integer seckillLimit;
    /**
    * 秒杀排序
    */
    @ApiModelProperty("秒杀排序")
    private Integer seckillSort;

}
